. . log using "wk07a nfl.log", replace . . // 1. Define the log-likelihood evaluator program . program define mylogit_ll 1. version 15 2. args lnf xb 3. tempvar p 4. quietly generate double `p' = exp(`xb') / (1 + exp(`xb')) 5. quietly replace `lnf' = $ML_y1 * ln(`p') + (1 - $ML_y1) * ln(1 - `p') 6. end . . use "nfl 2001 2024 games v2 canvas.dta" . keep if season==2024 & location != "Neutral" (6,195 observations deleted) . . reg hwins x1-x31 Source | SS df MS Number of obs = 278 -------------+---------------------------------- F(31, 246) = 4.30 Model | 24.2806446 31 .7832466 Prob > F = 0.0000 Residual | 44.8596432 246 .182356273 R-squared = 0.3512 -------------+---------------------------------- Adj R-squared = 0.2694 Total | 69.1402878 277 .249603927 Root MSE = .42703 ------------------------------------------------------------------------------ hwins | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | -.2030253 .1464578 -1.39 0.167 -.4914966 .085446 x2 | -.2137042 .1397672 -1.53 0.128 -.4889972 .0615887 x3 | .0309247 .1370632 0.23 0.822 -.2390423 .3008917 x4 | .0423685 .1441915 0.29 0.769 -.2416388 .3263759 x5 | -.4292147 .142085 -3.02 0.003 -.7090731 -.1493564 x6 | -.3822824 .1484647 -2.57 0.011 -.6747065 -.0898582 x7 | -.1841597 .1403025 -1.31 0.191 -.4605071 .0921876 x8 | -.4884656 .1405102 -3.48 0.001 -.7652221 -.2117092 x9 | -.2571484 .134406 -1.91 0.057 -.5218818 .007585 x10 | -.1310877 .1438786 -0.91 0.363 -.4144787 .1523033 x11 | .156088 .1431807 1.09 0.277 -.1259286 .4381045 x12 | -.0314632 .1491924 -0.21 0.833 -.3253206 .2623942 x13 | -.1260142 .1450708 -0.87 0.386 -.4117536 .1597251 x14 | -.2842969 .1495134 -1.90 0.058 -.5787866 .0101929 x15 | -.508358 .154259 -3.30 0.001 -.812195 -.2045211 x16 | .1961233 .1422478 1.38 0.169 -.0840557 .4763022 x17 | -.1192017 .1463314 -0.81 0.416 -.4074239 .1690206 x18 | -.1087373 .1435007 -0.76 0.449 -.3913839 .1739094 x19 | -.4372135 .1458853 -3.00 0.003 -.724557 -.1498699 x20 | -.3144505 .1510695 -2.08 0.038 -.6120052 -.0168959 x21 | .1035957 .1514841 0.68 0.495 -.1947755 .4019669 x22 | -.4841005 .1532223 -3.16 0.002 -.7858955 -.1823055 x23 | -.3984498 .1397384 -2.85 0.005 -.6736861 -.1232135 x24 | -.4454476 .1368503 -3.25 0.001 -.7149953 -.1758998 x25 | -.4333109 .1535154 -2.82 0.005 -.7356832 -.1309386 x26 | .1207941 .1283407 0.94 0.348 -.1319927 .3735809 x27 | -.1215203 .1388394 -0.88 0.382 -.3949859 .1519453 x28 | -.1110404 .1494181 -0.74 0.458 -.4053424 .1832616 x29 | -.2899342 .1492505 -1.94 0.053 -.5839061 .0040377 x30 | -.1281954 .1343481 -0.95 0.341 -.3928146 .1364239 x31 | -.5261306 .1465696 -3.59 0.000 -.814822 -.2374393 _cons | .5295702 .0257949 20.53 0.000 .4787631 .5803773 ------------------------------------------------------------------------------ . regsave using lpm.dta, replace file lpm.dta saved . . reg ptsdiff x1-x31 Source | SS df MS Number of obs = 278 -------------+---------------------------------- F(31, 246) = 4.76 Model | 21918.5222 31 707.049105 Prob > F = 0.0000 Residual | 36523.2475 246 148.468486 R-squared = 0.3750 -------------+---------------------------------- Adj R-squared = 0.2963 Total | 58441.7698 277 210.981118 Root MSE = 12.185 ------------------------------------------------------------------------------ ptsdiff | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | -2.219248 4.178971 -0.53 0.596 -10.45038 6.01188 x2 | -6.550173 3.988062 -1.64 0.102 -14.40528 1.304931 x3 | 5.879684 3.910907 1.50 0.134 -1.823451 13.58282 x4 | 4.817042 4.114304 1.17 0.243 -3.286714 12.9208 x5 | -15.66059 4.054199 -3.86 0.000 -23.64596 -7.675221 x6 | -7.346605 4.236235 -1.73 0.084 -15.69052 .9973138 x7 | -2.754309 4.003336 -0.69 0.492 -10.6395 5.130879 x8 | -13.41375 4.009263 -3.35 0.001 -21.31061 -5.51689 x9 | -10.34078 3.83509 -2.70 0.007 -17.89459 -2.786983 x10 | .8323571 4.105375 0.20 0.839 -7.253812 8.918527 x11 | 8.131824 4.085464 1.99 0.048 .0848723 16.17877 x12 | 3.419911 4.256998 0.80 0.423 -4.964902 11.80473 x13 | -3.774189 4.139395 -0.91 0.363 -11.92737 4.378987 x14 | -7.843104 4.266159 -1.84 0.067 -16.24596 .5597536 x15 | -11.65926 4.401568 -2.65 0.009 -20.32882 -2.98969 x16 | .1670939 4.058844 0.04 0.967 -7.827424 8.161612 x17 | -3.972374 4.175364 -0.95 0.342 -12.1964 4.251648 x18 | -.3774127 4.094592 -0.09 0.927 -8.442343 7.687518 x19 | -10.95242 4.162634 -2.63 0.009 -19.15137 -2.753476 x20 | -7.008899 4.310558 -1.63 0.105 -15.49921 1.48141 x21 | 2.105938 4.322388 0.49 0.627 -6.407671 10.61955 x22 | -11.43899 4.371987 -2.62 0.009 -20.05029 -2.827692 x23 | -8.48111 3.987242 -2.13 0.034 -16.3346 -.6276228 x24 | -11.74439 3.904834 -3.01 0.003 -19.43556 -4.053215 x25 | -8.700208 4.38035 -1.99 0.048 -17.32798 -.0724339 x26 | 5.126884 3.662024 1.40 0.163 -2.086038 12.33981 x27 | -2.35329 3.961589 -0.59 0.553 -10.15625 5.44967 x28 | -3.031048 4.263439 -0.71 0.478 -11.42855 5.366452 x29 | -5.401191 4.258657 -1.27 0.206 -13.78927 2.986889 x30 | 1.678772 3.833436 0.44 0.662 -5.871771 9.229314 x31 | -12.52028 4.182159 -2.99 0.003 -20.75769 -4.282875 _cons | 1.860001 .7360226 2.53 0.012 .4102909 3.309711 ------------------------------------------------------------------------------ . regsave using ptsdiff.dta, replace file ptsdiff.dta saved . . logit hwins x1-x31 Iteration 0: log likelihood = -191.97487 Iteration 1: log likelihood = -134.39491 Iteration 2: log likelihood = -133.96004 Iteration 3: log likelihood = -133.95825 Iteration 4: log likelihood = -133.95825 Logistic regression Number of obs = 278 LR chi2(31) = 116.03 Prob > chi2 = 0.0000 Log likelihood = -133.95825 Pseudo R2 = 0.3022 ------------------------------------------------------------------------------ hwins | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | -1.135068 .8390013 -1.35 0.176 -2.77948 .5093441 x2 | -1.247096 .808595 -1.54 0.123 -2.831913 .3377208 x3 | .0904812 .788693 0.11 0.909 -1.455329 1.636291 x4 | .3178664 .8899264 0.36 0.721 -1.426357 2.06209 x5 | -2.368757 .86138 -2.75 0.006 -4.057031 -.6804832 x6 | -2.204401 .9340737 -2.36 0.018 -4.035152 -.3736503 x7 | -1.10022 .8155261 -1.35 0.177 -2.698621 .4981821 x8 | -2.931097 .9267982 -3.16 0.002 -4.747588 -1.114605 x9 | -1.446508 .782459 -1.85 0.065 -2.980099 .0870837 x10 | -.8149291 .8321755 -0.98 0.327 -2.445963 .8161048 x11 | .925321 .9199366 1.01 0.314 -.8777216 2.728364 x12 | -.2149692 .9037422 -0.24 0.812 -1.986271 1.556333 x13 | -.7819796 .8767111 -0.89 0.372 -2.500302 .9363426 x14 | -1.730618 .886247 -1.95 0.051 -3.46763 .0063942 x15 | -3.202317 1.009543 -3.17 0.002 -5.180984 -1.223649 x16 | 1.271291 1.00406 1.27 0.205 -.6966303 3.239212 x17 | -.7196775 .8522299 -0.84 0.398 -2.390017 .9506625 x18 | -.7080838 .8332122 -0.85 0.395 -2.34115 .924982 x19 | -2.550972 .9026982 -2.83 0.005 -4.320228 -.7817162 x20 | -1.843692 .881849 -2.09 0.037 -3.572085 -.1153001 x21 | .6287026 .989485 0.64 0.525 -1.310652 2.568058 x22 | -2.648345 .9197117 -2.88 0.004 -4.450947 -.8457434 x23 | -2.241789 .8454455 -2.65 0.008 -3.898832 -.5847462 x24 | -2.562208 .8988349 -2.85 0.004 -4.323893 -.8005244 x25 | -2.405997 .907166 -2.65 0.008 -4.18401 -.6279846 x26 | .7292884 .7929564 0.92 0.358 -.8248776 2.283454 x27 | -.7416965 .7987674 -0.93 0.353 -2.307252 .8238588 x28 | -.7143905 .8586391 -0.83 0.405 -2.397292 .9685112 x29 | -1.582814 .8726787 -1.81 0.070 -3.293233 .1276046 x30 | -.7903403 .7640142 -1.03 0.301 -2.287781 .7071 x31 | -3.230382 .9905844 -3.26 0.001 -5.171892 -1.288872 _cons | .1831832 .1535841 1.19 0.233 -.1178362 .4842025 ------------------------------------------------------------------------------ . regsave using logit.dta, replace file logit.dta saved . . gen gof1 = .5*(1+max(min((h_score-a_score)/15,1),-1)) . . gen gof2 = normal((h_score-a_score)/(4*(h_score+a_score)^.25)) . . // 2. Declare the ml model . ml model lf mylogit_ll (xb: gof1 = x1-x31) . // 3. Check the evaluator program . ml check Test 1: Calling mylogit_ll to check if it computes log likelihood and does not alter coefficient vector... Passed. Test 2: Calling mylogit_ll again to check if the same log likelihood value is returned... Passed. Test 3: Calling mylogit_ll to check if 1st derivatives are computed... test not relevant for type lf evaluators. Test 4: Calling mylogit_ll again to check if the same 1st derivatives are returned... test not relevant for type lf evaluators. Test 5: Calling mylogit_ll to check if 2nd derivatives are computed... test not relevant for type lf evaluators. Test 6: Calling mylogit_ll again to check if the same 2nd derivatives are returned... test not relevant for type lf evaluators. ------------------------------------------------------------------------------ Searching for alternate values for the coefficient vector to verify that mylogit_ll returns different results when fed a different coefficient vector: Searching... initial: log likelihood = - (could not be evaluated) searching for feasible values + feasible: log likelihood = -275.18505 improving initial values ......+... improve: log likelihood = -268.64706 continuing with tests... ------------------------------------------------------------------------------ Test 7: Calling mylogit_ll to check log likelihood at the new values... Passed. Test 8: Calling mylogit_ll requesting 1st derivatives at the new values... test not relevant for type lf evaluators. Test 9: Calling mylogit_ll requesting 2nd derivatives at the new values... test not relevant for type lf evaluators. ------------------------------------------------------------------------------ mylogit_ll HAS PASSED ALL TESTS ------------------------------------------------------------------------------ Test 10: Does mylogit_ll produce unanticipated output? This is a minor issue. Stata has been running mylogit_ll with all output suppressed. This time Stata will not suppress the output. If you see any unanticipated output, you need to place quietly in front of some of the commands in mylogit_ll. -------------------------------------------------------------- begin execution ---------------------------------------------------------------- end execution . // 4. Search for initial values . ml search initial: log likelihood = -268.64706 rescale: log likelihood = -192.02325 . // 5. Maximize . ml maximize initial: log likelihood = -192.02325 rescale: log likelihood = -192.02325 Iteration 0: log likelihood = -192.02325 Iteration 1: log likelihood = -166.70536 Iteration 2: log likelihood = -166.63495 Iteration 3: log likelihood = -166.6349 Iteration 4: log likelihood = -166.6349 Number of obs = 278 Wald chi2(31) = 40.53 Log likelihood = -166.6349 Prob > chi2 = 0.1174 ------------------------------------------------------------------------------ gof1 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | -.3873096 .736834 -0.53 0.599 -1.831478 1.056859 x2 | -.6431221 .7120918 -0.90 0.366 -2.038796 .7525522 x3 | .6026302 .715702 0.84 0.400 -.8001199 2.00538 x4 | .4608274 .7542981 0.61 0.541 -1.01757 1.939225 x5 | -1.477438 .7680707 -1.92 0.054 -2.982828 .0279534 x6 | -.9707907 .7717176 -1.26 0.208 -2.483329 .5417479 x7 | -.1868416 .7188607 -0.26 0.795 -1.595783 1.222099 x8 | -1.728419 .7929325 -2.18 0.029 -3.282538 -.1742997 x9 | -.7671784 .686628 -1.12 0.264 -2.112945 .5785878 x10 | .0539113 .7421784 0.07 0.942 -1.400732 1.508554 x11 | .6114723 .7535337 0.81 0.417 -.8654266 2.088371 x12 | .2204679 .7731449 0.29 0.776 -1.294868 1.735804 x13 | -.3341145 .7410517 -0.45 0.652 -1.786549 1.11832 x14 | -.9577275 .7653825 -1.25 0.211 -2.45785 .5423947 x15 | -1.17346 .8093447 -1.45 0.147 -2.759747 .4128263 x16 | .3154393 .7368793 0.43 0.669 -1.128818 1.759696 x17 | -.4093468 .7411531 -0.55 0.581 -1.86198 1.043287 x18 | -.0069566 .7372786 -0.01 0.992 -1.451996 1.438083 x19 | -1.463977 .7864881 -1.86 0.063 -3.005465 .0775114 x20 | -.7819188 .7681767 -1.02 0.309 -2.287517 .7236798 x21 | .1876077 .7849962 0.24 0.811 -1.350956 1.726172 x22 | -1.223689 .7875607 -1.55 0.120 -2.76728 .3199016 x23 | -1.026177 .7233046 -1.42 0.156 -2.443828 .3914736 x24 | -1.222936 .7265448 -1.68 0.092 -2.646938 .2010652 x25 | -.9056119 .7761153 -1.17 0.243 -2.42677 .6155461 x26 | .6263235 .6843606 0.92 0.360 -.7149987 1.967646 x27 | -.2418477 .7079958 -0.34 0.733 -1.629494 1.145799 x28 | -.3852451 .7506955 -0.51 0.608 -1.856581 1.086091 x29 | -.54629 .7546337 -0.72 0.469 -2.025345 .9327649 x30 | .1290986 .6854517 0.19 0.851 -1.214362 1.472559 x31 | -1.46565 .7880703 -1.86 0.063 -3.010239 .0789393 _cons | .155611 .1332118 1.17 0.243 -.1054793 .4167012 ------------------------------------------------------------------------------ . . regsave using gof1.dta, replace file gof1.dta saved . . ml model lf mylogit_ll (xb: gof2 = x1-x31) . // 3. Check the evaluator program . ml check Test 1: Calling mylogit_ll to check if it computes log likelihood and does not alter coefficient vector... Passed. Test 2: Calling mylogit_ll again to check if the same log likelihood value is returned... Passed. Test 3: Calling mylogit_ll to check if 1st derivatives are computed... test not relevant for type lf evaluators. Test 4: Calling mylogit_ll again to check if the same 1st derivatives are returned... test not relevant for type lf evaluators. Test 5: Calling mylogit_ll to check if 2nd derivatives are computed... test not relevant for type lf evaluators. Test 6: Calling mylogit_ll again to check if the same 2nd derivatives are returned... test not relevant for type lf evaluators. ------------------------------------------------------------------------------ Searching for alternate values for the coefficient vector to verify that mylogit_ll returns different results when fed a different coefficient vector: Searching... initial: log likelihood = - (could not be evaluated) searching for feasible values + feasible: log likelihood = -290.29757 improving initial values +......... improve: log likelihood = -234.28523 continuing with tests... ------------------------------------------------------------------------------ Test 7: Calling mylogit_ll to check log likelihood at the new values... Passed. Test 8: Calling mylogit_ll requesting 1st derivatives at the new values... test not relevant for type lf evaluators. Test 9: Calling mylogit_ll requesting 2nd derivatives at the new values... test not relevant for type lf evaluators. ------------------------------------------------------------------------------ mylogit_ll HAS PASSED ALL TESTS ------------------------------------------------------------------------------ Test 10: Does mylogit_ll produce unanticipated output? This is a minor issue. Stata has been running mylogit_ll with all output suppressed. This time Stata will not suppress the output. If you see any unanticipated output, you need to place quietly in front of some of the commands in mylogit_ll. -------------------------------------------------------------- begin execution ---------------------------------------------------------------- end execution . // 4. Search for initial values . ml search initial: log likelihood = -234.28523 rescale: log likelihood = -192.05438 . // 5. Maximize . ml maximize initial: log likelihood = -192.05438 rescale: log likelihood = -192.05438 Iteration 0: log likelihood = -192.05438 Iteration 1: log likelihood = -167.75845 Iteration 2: log likelihood = -167.70015 Iteration 3: log likelihood = -167.70013 Iteration 4: log likelihood = -167.70013 Number of obs = 278 Wald chi2(31) = 39.37 Log likelihood = -167.70013 Prob > chi2 = 0.1439 ------------------------------------------------------------------------------ gof2 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | -.4046376 .7355565 -0.55 0.582 -1.846302 1.037027 x2 | -.6368799 .7101492 -0.90 0.370 -2.028747 .754987 x3 | .5446023 .7105163 0.77 0.443 -.847984 1.937189 x4 | .4427394 .7514967 0.59 0.556 -1.030167 1.915646 x5 | -1.444472 .7630755 -1.89 0.058 -2.940072 .051129 x6 | -.9459257 .7695828 -1.23 0.219 -2.45428 .5624289 x7 | -.1883366 .7162235 -0.26 0.793 -1.592109 1.215436 x8 | -1.626892 .7799497 -2.09 0.037 -3.155565 -.0982185 x9 | -.7906687 .6866293 -1.15 0.250 -2.136437 .5551 x10 | -.0180778 .7364529 -0.02 0.980 -1.461499 1.425343 x11 | .6178196 .7528946 0.82 0.412 -.8578268 2.093466 x12 | .2070318 .7709819 0.27 0.788 -1.304065 1.718129 x13 | -.3314019 .7397467 -0.45 0.654 -1.781279 1.118475 x14 | -.9188239 .7633038 -1.20 0.229 -2.414872 .5772241 x15 | -1.187203 .8084782 -1.47 0.142 -2.771791 .3973853 x16 | .338458 .7353838 0.46 0.645 -1.102868 1.779784 x17 | -.3451363 .739392 -0.47 0.641 -1.794318 1.104045 x18 | -.0396212 .7331823 -0.05 0.957 -1.476632 1.39739 x19 | -1.338798 .7741153 -1.73 0.084 -2.856037 .1784398 x20 | -.7668312 .7657949 -1.00 0.317 -2.267762 .7340991 x21 | .22339 .7859585 0.28 0.776 -1.31706 1.76384 x22 | -1.180048 .7841889 -1.50 0.132 -2.71703 .3569341 x23 | -.9935983 .7193772 -1.38 0.167 -2.403552 .4163551 x24 | -1.259956 .7294206 -1.73 0.084 -2.689595 .1696817 x25 | -.8947613 .7745308 -1.16 0.248 -2.412814 .6232912 x26 | .6475587 .6849422 0.95 0.344 -.6949034 1.990021 x27 | -.1935956 .7054704 -0.27 0.784 -1.576292 1.189101 x28 | -.3157679 .7500878 -0.42 0.674 -1.785913 1.154377 x29 | -.5736419 .7539328 -0.76 0.447 -2.051323 .9040392 x30 | .0780461 .6824379 0.11 0.909 -1.259508 1.4156 x31 | -1.477923 .7882249 -1.88 0.061 -3.022816 .066969 _cons | .1470409 .1326482 1.11 0.268 -.1129448 .4070266 ------------------------------------------------------------------------------ . . regsave using gof2.dta, replace file gof2.dta saved . . * Merge results from the different models . . use lpm, clear . keep var coef . rename coef lpm . save retrodictive, replace file retrodictive.dta saved . . use logit, clear . keep var coef . rename coef logit . replace var = subinstr(var,"hwins:","",.) (32 real changes made) . merge 1:1 var using retrodictive Result # of obs. ----------------------------------------- not matched 0 matched 32 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . . use ptsdiff, clear . keep var coef . rename coef ptsdiff . merge 1:1 var using retrodictive (note: variable var was str5, now str11 to accommodate using data's values) Result # of obs. ----------------------------------------- not matched 0 matched 32 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . . use gof1, clear . keep var coef . rename coef gof1 . replace var = subinstr(var,"xb:","",.) (32 real changes made) . merge 1:1 var using retrodictive (note: variable var was str8, now str11 to accommodate using data's values) Result # of obs. ----------------------------------------- not matched 0 matched 32 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . . use gof2, clear . keep var coef . rename coef gof2 . replace var = subinstr(var,"xb:","",.) (32 real changes made) . merge 1:1 var using retrodictive (note: variable var was str8, now str11 to accommodate using data's values) Result # of obs. ----------------------------------------- not matched 0 matched 32 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . ***/ . . use "nfl 2001 2024 games v2 canvas.dta" . . keep idhome home . gen var = "x"+string(idhome) . rename home team . drop idhome . duplicates drop Duplicates in terms of all variables (6,441 observations deleted) . merge 1:1 var using retrodictive (note: variable var was str3, now str11 to accommodate using data's values) Result # of obs. ----------------------------------------- not matched 2 from master 1 (_merge==1) from using 1 (_merge==2) matched 31 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . . replace lpm = 0 if var == "x32" (1 real change made) . replace logit = 0 if var == "x32" (1 real change made) . replace ptsdiff = 0 if var == "x32" (1 real change made) . replace gof1 = 0 if var == "x32" (1 real change made) . replace gof2 = 0 if var == "x32" (1 real change made) . . drop if var == "_cons" (1 observation deleted) . save retrodictive, replace file retrodictive.dta saved . . use rpi, clear . rename tm team . gen rpi = .25*wp+.5*owp+.25*oowp . keep team rpi . merge 1:1 team using retrodictive Result # of obs. ----------------------------------------- not matched 0 matched 32 (_merge==3) ----------------------------------------- . drop _merge . save retrodictive, replace file retrodictive.dta saved . . gsort -logit . . egen rnk_lpm = rank(-lpm) . egen rnk_ptsdiff = rank(-ptsdiff) . egen rnk_logit = rank(-logit) . egen rnk_gof1 = rank(-gof1) . egen rnk_gof2 = rank(-gof2) . egen rnk_rpi = rank(-rpi) . . gen rnk_avg =rnk_lpm+rnk_ptsdiff+rnk_logit+rnk_gof1+rnk_gof2+rnk_rpi . . gsort rnk_avg . . order var team lpm rnk_lpm ptsdiff rnk_ptsdiff logit rnk_logit gof1 rnk_gof1 gof2 rnk_gof2 rpi rnk_rpi . . format lpm ptsdiff logit gof1 gof2 rpi %8.3f . list team lpm ptsdiff logit gof1 gof2 rpi, noobs clean team lpm ptsdiff logit gof1 gof2 rpi DET 0.156 8.132 0.925 0.611 0.618 0.591 PHI 0.121 5.127 0.729 0.626 0.648 0.587 KC 0.196 0.167 1.271 0.315 0.338 0.594 BAL 0.031 5.880 0.090 0.603 0.545 0.563 BUF 0.042 4.817 0.318 0.461 0.443 0.558 MIN 0.104 2.106 0.629 0.188 0.223 0.558 GB -0.031 3.420 -0.215 0.220 0.207 0.548 WAS 0.000 0.000 0.000 0.000 0.000 0.544 TB -0.128 1.679 -0.790 0.129 0.078 0.518 LAC -0.109 -0.377 -0.708 -0.007 -0.040 0.510 DEN -0.131 0.832 -0.815 0.054 -0.018 0.514 SEA -0.111 -3.031 -0.714 -0.385 -0.316 0.518 PIT -0.122 -2.353 -0.742 -0.242 -0.194 0.517 LA -0.119 -3.972 -0.720 -0.409 -0.345 0.536 HOU -0.126 -3.774 -0.782 -0.334 -0.331 0.515 CIN -0.184 -2.754 -1.100 -0.187 -0.188 0.493 ARI -0.203 -2.219 -1.135 -0.387 -0.405 0.505 ATL -0.214 -6.550 -1.247 -0.643 -0.637 0.495 SF -0.290 -5.401 -1.583 -0.546 -0.574 0.489 DAL -0.257 -10.341 -1.447 -0.767 -0.791 0.488 MIA -0.314 -7.009 -1.844 -0.782 -0.767 0.449 IND -0.284 -7.843 -1.731 -0.958 -0.919 0.463 CHI -0.382 -7.347 -2.204 -0.971 -0.946 0.467 NO -0.398 -8.481 -2.242 -1.026 -0.994 0.448 NYJ -0.433 -8.700 -2.406 -0.906 -0.895 0.437 LV -0.437 -10.952 -2.551 -1.464 -1.339 0.443 NYG -0.445 -11.744 -2.562 -1.223 -1.260 0.442 CAR -0.429 -15.661 -2.369 -1.477 -1.444 0.445 NE -0.484 -11.439 -2.648 -1.224 -1.180 0.413 JAX -0.508 -11.659 -3.202 -1.173 -1.187 0.417 CLE -0.488 -13.414 -2.931 -1.728 -1.627 0.431 TEN -0.526 -12.520 -3.230 -1.466 -1.478 0.419 . list team rnk_lpm rnk_ptsdiff rnk_logit rnk_gof1 rnk_gof2 rnk_rpi, noobs clean team rnk_lpm rnk_pt~f rnk_lo~t rnk_gof1 rnk_gof2 rnk_rpi DET 2 1 2 2 2 2 PHI 3 3 3 1 1 3 KC 1 9 1 5 5 1 BAL 6 2 6 3 3 4 BUF 5 4 5 4 4 5 MIN 4 6 4 7 6 6 GB 8 5 8 6 7 7 WAS 7 10 7 10 9 8 TB 14 7 14 8 8 11 LAC 9 11 9 11 11 15 DEN 15 8 15 9 10 14 SEA 10 15 10 15 14 10 PIT 12 13 12 13 13 12 LA 11 17 11 17 16 9 HOU 13 16 13 14 15 13 CIN 16 14 16 12 12 18 ARI 17 12 17 16 17 16 ATL 18 19 18 19 19 17 SF 21 18 20 18 18 19 DAL 19 25 19 20 21 20 MIA 22 20 22 21 20 23 IND 20 22 21 23 23 22 CHI 23 21 23 24 24 21 NO 24 23 24 25 25 24 NYJ 26 24 26 22 22 28 LV 27 26 27 29 29 26 NYG 28 29 28 27 28 27 CAR 25 32 25 31 30 25 NE 29 27 29 28 26 32 JAX 31 28 31 26 27 31 CLE 30 31 30 32 32 29 TEN 32 30 32 30 31 30 . . export excel using "nfl 2024 wk07 rates ranks.csv", firstrow(variables) replace file nfl 2024 wk07 rates ranks.csv saved . . corr lpm ptsdiff logit gof1 gof2 rpi (obs=32) | lpm ptsdiff logit gof1 gof2 rpi -------------+------------------------------------------------------ lpm | 1.0000 ptsdiff | 0.9205 1.0000 logit | 0.9976 0.9112 1.0000 gof1 | 0.9474 0.9779 0.9419 1.0000 gof2 | 0.9582 0.9797 0.9532 0.9983 1.0000 rpi | 0.9866 0.9148 0.9847 0.9371 0.9475 1.0000 . ktau lpm ptsdiff logit gof1 gof2 rpi (obs=32) | lpm ptsdiff logit gof1 gof2 rpi -------------+------------------------------------------------------------------ lpm | 1.0000 ptsdiff | 0.7661 1.0000 logit | 0.9960 0.7702 1.0000 gof1 | 0.7944 0.8911 0.7984 1.0000 gof2 | 0.8105 0.8911 0.8145 0.9677 1.0000 rpi | 0.8992 0.7621 0.9032 0.7823 0.7903 1.0000 . ktau rnk_lpm rnk_ptsdiff rnk_logit rnk_gof1 rnk_gof2 rnk_rpi (obs=32) | rnk_lpm rnk_pt~f rnk_lo~t rnk_gof1 rnk_gof2 rnk_rpi -------------+------------------------------------------------------------------ rnk_lpm | 1.0000 rnk_ptsdiff | 0.7661 1.0000 rnk_logit | 0.9960 0.7702 1.0000 rnk_gof1 | 0.7944 0.8911 0.7984 1.0000 rnk_gof2 | 0.8105 0.8911 0.8145 0.9677 1.0000 rnk_rpi | 0.8992 0.7621 0.9032 0.7823 0.7903 1.0000 . . log close . end of do-file